﻿using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace PrivateTracker.Service.Core;
[Comment("种子信息")]
[Table("tracker_torrent")]
public class Torrent : DEntityTenant
{
    [Comment("标题"), MaxLength(255)]
    public string Title { get; set; }
    [Comment("副标题"), MaxLength(255)]
    public string Subtitle { get; set; }
    [Comment("标识"), MaxLength(20)]
    public string HashInfo { get; set; }
    [Comment("豆瓣ID")]
    public long? DouBanId { get; set; }
    [Comment("大小")]
    public long TotalSize { get; set; }
    [Comment("已完成数")]
    public int Completed { get; set; }
    [Comment("做种数")]
    public int Complete { get; set; }
    [Comment("未完成数")]
    public int InComplete { get; set; }
    public ICollection<Peer> Peers { get; set; }
    [Comment("种子文件ID")]
    public long FileId { get; set; }

}
